﻿@model View.Web.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<section id="loginForm">
<h2> Login </h2>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

        @Html.LabelFor(m => m.UserName)
        @Html.TextBoxFor(m => m.UserName)
        @Html.ValidationMessageFor(m => m.UserName)
                
        @Html.LabelFor(m => m.Password)
        @Html.PasswordFor(m => m.Password)
        @Html.ValidationMessageFor(m => m.Password)

        <br />
        <input type="submit" class="btn" value="Log in" />

    <br />
}
</section>